package third.com.zut.aop.annotation;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAnnotationAspectj {
	@Test
	public void test01() {
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext(
				"/third/com/zut/aop/annotation/applicationContext.xml");
		UserDao userDao = applicationContext.getBean("UserDao", UserDao.class);
		userDao.addUser();
		userDao.deleteUser();
		userDao.updateUser();
		userDao.selectUser();
		userDao.selectAllUser();

	}
}
